//
//  ViewController.m
//  OpenGLES
//
//  Authors:
//    - 2016.03.01 David Qiu (david@davidqiu.com)
//
//  Copyright (C) 2016 DJI. All rights reserved.
//

#import "ViewController.h"
#import "OpenGLView.h"



/**
 *  View controller. (Internal Interface)
 */
@interface ViewController ()

@property (strong, nonatomic) OpenGLView *glView;

@end



/**
 *  View controller. (Implementation)
 */
@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // Initialize: OpenGL view
    CGRect glViewFrame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
    self.glView = [[OpenGLView alloc] initWithFrame:glViewFrame];
    [self.view addSubview:self.glView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
